<h1>Listing authorships</h1>

<table>
  <tr>
    <th>Blog</th>
    <th>User</th>
  </tr>
  
<% for authorship in @authorships %>
  <tr>
    <td><%=h authorship.blog_id %></td>
    <td><%=h authorship.user_id %></td>
    <td><%= link_to 'Show', authorship_path(authorship) %></td>
    <td><%= link_to 'Edit', edit_authorship_path(authorship) %></td>
    <td><%= link_to 'Destroy', authorship_path(authorship), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New authorship', new_authorship_path %>